-- GENERATED SPELL FOR [Umberhowl] --


function spell0_21255(pUnit, Event) --@Chilling Howl,n/a--
pUnit:FullCastSpellOnTarget(32918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21255', 15000, 1)
end

function spell1_21255(pUnit, Event) --@Snarl,n/a--
pUnit:FullCastSpellOnTarget(32919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21255', 572, 1)
end

function Sorts_21255(pUnit, Event)
local choix_sorts_21255 = math.random(0, 1)
if choix_sorts_21255 == 0 then
pUnit:RegisterEvent('spell0_21255', 1, 1)
end
if choix_sorts_21255 == 1 then
pUnit:RegisterEvent('spell1_21255', 1, 1)
end
end

function mob21255_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21255', math.random(1500, 3000), 1)
end

function mob21255_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21255_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21255_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21255, 1, 'mob21255_Action')
RegisterUnitEvent(21255, 2, 'mob21255_Leave')
RegisterUnitEvent(21255, 3, 'mob21255_Kill')
RegisterUnitEvent(21255, 4, 'mob21255_Die')
